package com.zzedu.device.req;

import com.zzedu.enmuns.VerificationCodeEnums;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;


/**
 * 获取验证码
 * @author wyf
 */
public class GetVerificationCode implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空")
    private String phone;

    /**
     * 验证码类型
     */
    @NotNull(message = "验证码类型不能为空")
    private VerificationCodeEnums verificationCodeEnums;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public VerificationCodeEnums getVerificationCodeEnums() {
        return verificationCodeEnums;
    }

    public void setVerificationCodeEnums(VerificationCodeEnums verificationCodeEnums) {
        this.verificationCodeEnums = verificationCodeEnums;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }

}
